package com.chinawayltd.ews.sample.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TVehicleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TVehicleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andG7sIdIsNull() {
            addCriterion("g7s_id is null");
            return (Criteria) this;
        }

        public Criteria andG7sIdIsNotNull() {
            addCriterion("g7s_id is not null");
            return (Criteria) this;
        }

        public Criteria andG7sIdEqualTo(String value) {
            addCriterion("g7s_id =", value, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdNotEqualTo(String value) {
            addCriterion("g7s_id <>", value, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdGreaterThan(String value) {
            addCriterion("g7s_id >", value, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdGreaterThanOrEqualTo(String value) {
            addCriterion("g7s_id >=", value, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdLessThan(String value) {
            addCriterion("g7s_id <", value, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdLessThanOrEqualTo(String value) {
            addCriterion("g7s_id <=", value, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdLike(String value) {
            addCriterion("g7s_id like", value, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdNotLike(String value) {
            addCriterion("g7s_id not like", value, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdIn(List<String> values) {
            addCriterion("g7s_id in", values, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdNotIn(List<String> values) {
            addCriterion("g7s_id not in", values, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdBetween(String value1, String value2) {
            addCriterion("g7s_id between", value1, value2, "g7sId");
            return (Criteria) this;
        }

        public Criteria andG7sIdNotBetween(String value1, String value2) {
            addCriterion("g7s_id not between", value1, value2, "g7sId");
            return (Criteria) this;
        }

        public Criteria andOwnIdIsNull() {
            addCriterion("own_id is null");
            return (Criteria) this;
        }

        public Criteria andOwnIdIsNotNull() {
            addCriterion("own_id is not null");
            return (Criteria) this;
        }

        public Criteria andOwnIdEqualTo(String value) {
            addCriterion("own_id =", value, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdNotEqualTo(String value) {
            addCriterion("own_id <>", value, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdGreaterThan(String value) {
            addCriterion("own_id >", value, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdGreaterThanOrEqualTo(String value) {
            addCriterion("own_id >=", value, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdLessThan(String value) {
            addCriterion("own_id <", value, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdLessThanOrEqualTo(String value) {
            addCriterion("own_id <=", value, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdLike(String value) {
            addCriterion("own_id like", value, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdNotLike(String value) {
            addCriterion("own_id not like", value, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdIn(List<String> values) {
            addCriterion("own_id in", values, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdNotIn(List<String> values) {
            addCriterion("own_id not in", values, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdBetween(String value1, String value2) {
            addCriterion("own_id between", value1, value2, "ownId");
            return (Criteria) this;
        }

        public Criteria andOwnIdNotBetween(String value1, String value2) {
            addCriterion("own_id not between", value1, value2, "ownId");
            return (Criteria) this;
        }

        public Criteria andCarNumIsNull() {
            addCriterion("car_num is null");
            return (Criteria) this;
        }

        public Criteria andCarNumIsNotNull() {
            addCriterion("car_num is not null");
            return (Criteria) this;
        }

        public Criteria andCarNumEqualTo(String value) {
            addCriterion("car_num =", value, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumNotEqualTo(String value) {
            addCriterion("car_num <>", value, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumGreaterThan(String value) {
            addCriterion("car_num >", value, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumGreaterThanOrEqualTo(String value) {
            addCriterion("car_num >=", value, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumLessThan(String value) {
            addCriterion("car_num <", value, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumLessThanOrEqualTo(String value) {
            addCriterion("car_num <=", value, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumLike(String value) {
            addCriterion("car_num like", value, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumNotLike(String value) {
            addCriterion("car_num not like", value, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumIn(List<String> values) {
            addCriterion("car_num in", values, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumNotIn(List<String> values) {
            addCriterion("car_num not in", values, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumBetween(String value1, String value2) {
            addCriterion("car_num between", value1, value2, "carNum");
            return (Criteria) this;
        }

        public Criteria andCarNumNotBetween(String value1, String value2) {
            addCriterion("car_num not between", value1, value2, "carNum");
            return (Criteria) this;
        }

        public Criteria andGpsnoIsNull() {
            addCriterion("gpsno is null");
            return (Criteria) this;
        }

        public Criteria andGpsnoIsNotNull() {
            addCriterion("gpsno is not null");
            return (Criteria) this;
        }

        public Criteria andGpsnoEqualTo(Integer value) {
            addCriterion("gpsno =", value, "gpsno");
            return (Criteria) this;
        }

        public Criteria andGpsnoNotEqualTo(Integer value) {
            addCriterion("gpsno <>", value, "gpsno");
            return (Criteria) this;
        }

        public Criteria andGpsnoGreaterThan(Integer value) {
            addCriterion("gpsno >", value, "gpsno");
            return (Criteria) this;
        }

        public Criteria andGpsnoGreaterThanOrEqualTo(Integer value) {
            addCriterion("gpsno >=", value, "gpsno");
            return (Criteria) this;
        }

        public Criteria andGpsnoLessThan(Integer value) {
            addCriterion("gpsno <", value, "gpsno");
            return (Criteria) this;
        }

        public Criteria andGpsnoLessThanOrEqualTo(Integer value) {
            addCriterion("gpsno <=", value, "gpsno");
            return (Criteria) this;
        }

        public Criteria andGpsnoIn(List<Integer> values) {
            addCriterion("gpsno in", values, "gpsno");
            return (Criteria) this;
        }

        public Criteria andGpsnoNotIn(List<Integer> values) {
            addCriterion("gpsno not in", values, "gpsno");
            return (Criteria) this;
        }

        public Criteria andGpsnoBetween(Integer value1, Integer value2) {
            addCriterion("gpsno between", value1, value2, "gpsno");
            return (Criteria) this;
        }

        public Criteria andGpsnoNotBetween(Integer value1, Integer value2) {
            addCriterion("gpsno not between", value1, value2, "gpsno");
            return (Criteria) this;
        }

        public Criteria andOrgCodeIsNull() {
            addCriterion("org_code is null");
            return (Criteria) this;
        }

        public Criteria andOrgCodeIsNotNull() {
            addCriterion("org_code is not null");
            return (Criteria) this;
        }

        public Criteria andOrgCodeEqualTo(String value) {
            addCriterion("org_code =", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotEqualTo(String value) {
            addCriterion("org_code <>", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeGreaterThan(String value) {
            addCriterion("org_code >", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeGreaterThanOrEqualTo(String value) {
            addCriterion("org_code >=", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeLessThan(String value) {
            addCriterion("org_code <", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeLessThanOrEqualTo(String value) {
            addCriterion("org_code <=", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeLike(String value) {
            addCriterion("org_code like", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotLike(String value) {
            addCriterion("org_code not like", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeIn(List<String> values) {
            addCriterion("org_code in", values, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotIn(List<String> values) {
            addCriterion("org_code not in", values, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeBetween(String value1, String value2) {
            addCriterion("org_code between", value1, value2, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotBetween(String value1, String value2) {
            addCriterion("org_code not between", value1, value2, "orgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeIsNull() {
            addCriterion("from_org_code is null");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeIsNotNull() {
            addCriterion("from_org_code is not null");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeEqualTo(String value) {
            addCriterion("from_org_code =", value, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeNotEqualTo(String value) {
            addCriterion("from_org_code <>", value, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeGreaterThan(String value) {
            addCriterion("from_org_code >", value, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeGreaterThanOrEqualTo(String value) {
            addCriterion("from_org_code >=", value, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeLessThan(String value) {
            addCriterion("from_org_code <", value, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeLessThanOrEqualTo(String value) {
            addCriterion("from_org_code <=", value, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeLike(String value) {
            addCriterion("from_org_code like", value, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeNotLike(String value) {
            addCriterion("from_org_code not like", value, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeIn(List<String> values) {
            addCriterion("from_org_code in", values, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeNotIn(List<String> values) {
            addCriterion("from_org_code not in", values, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeBetween(String value1, String value2) {
            addCriterion("from_org_code between", value1, value2, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andFromOrgCodeNotBetween(String value1, String value2) {
            addCriterion("from_org_code not between", value1, value2, "fromOrgCode");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdIsNull() {
            addCriterion("main_driver_id is null");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdIsNotNull() {
            addCriterion("main_driver_id is not null");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdEqualTo(String value) {
            addCriterion("main_driver_id =", value, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdNotEqualTo(String value) {
            addCriterion("main_driver_id <>", value, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdGreaterThan(String value) {
            addCriterion("main_driver_id >", value, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdGreaterThanOrEqualTo(String value) {
            addCriterion("main_driver_id >=", value, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdLessThan(String value) {
            addCriterion("main_driver_id <", value, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdLessThanOrEqualTo(String value) {
            addCriterion("main_driver_id <=", value, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdLike(String value) {
            addCriterion("main_driver_id like", value, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdNotLike(String value) {
            addCriterion("main_driver_id not like", value, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdIn(List<String> values) {
            addCriterion("main_driver_id in", values, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdNotIn(List<String> values) {
            addCriterion("main_driver_id not in", values, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdBetween(String value1, String value2) {
            addCriterion("main_driver_id between", value1, value2, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andMainDriverIdNotBetween(String value1, String value2) {
            addCriterion("main_driver_id not between", value1, value2, "mainDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdIsNull() {
            addCriterion("dep_driver_id is null");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdIsNotNull() {
            addCriterion("dep_driver_id is not null");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdEqualTo(String value) {
            addCriterion("dep_driver_id =", value, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdNotEqualTo(String value) {
            addCriterion("dep_driver_id <>", value, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdGreaterThan(String value) {
            addCriterion("dep_driver_id >", value, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdGreaterThanOrEqualTo(String value) {
            addCriterion("dep_driver_id >=", value, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdLessThan(String value) {
            addCriterion("dep_driver_id <", value, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdLessThanOrEqualTo(String value) {
            addCriterion("dep_driver_id <=", value, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdLike(String value) {
            addCriterion("dep_driver_id like", value, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdNotLike(String value) {
            addCriterion("dep_driver_id not like", value, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdIn(List<String> values) {
            addCriterion("dep_driver_id in", values, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdNotIn(List<String> values) {
            addCriterion("dep_driver_id not in", values, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdBetween(String value1, String value2) {
            addCriterion("dep_driver_id between", value1, value2, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andDepDriverIdNotBetween(String value1, String value2) {
            addCriterion("dep_driver_id not between", value1, value2, "depDriverId");
            return (Criteria) this;
        }

        public Criteria andFromTypeIsNull() {
            addCriterion("from_type is null");
            return (Criteria) this;
        }

        public Criteria andFromTypeIsNotNull() {
            addCriterion("from_type is not null");
            return (Criteria) this;
        }

        public Criteria andFromTypeEqualTo(Byte value) {
            addCriterion("from_type =", value, "fromType");
            return (Criteria) this;
        }

        public Criteria andFromTypeNotEqualTo(Byte value) {
            addCriterion("from_type <>", value, "fromType");
            return (Criteria) this;
        }

        public Criteria andFromTypeGreaterThan(Byte value) {
            addCriterion("from_type >", value, "fromType");
            return (Criteria) this;
        }

        public Criteria andFromTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("from_type >=", value, "fromType");
            return (Criteria) this;
        }

        public Criteria andFromTypeLessThan(Byte value) {
            addCriterion("from_type <", value, "fromType");
            return (Criteria) this;
        }

        public Criteria andFromTypeLessThanOrEqualTo(Byte value) {
            addCriterion("from_type <=", value, "fromType");
            return (Criteria) this;
        }

        public Criteria andFromTypeIn(List<Byte> values) {
            addCriterion("from_type in", values, "fromType");
            return (Criteria) this;
        }

        public Criteria andFromTypeNotIn(List<Byte> values) {
            addCriterion("from_type not in", values, "fromType");
            return (Criteria) this;
        }

        public Criteria andFromTypeBetween(Byte value1, Byte value2) {
            addCriterion("from_type between", value1, value2, "fromType");
            return (Criteria) this;
        }

        public Criteria andFromTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("from_type not between", value1, value2, "fromType");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Byte value) {
            addCriterion("deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Byte value) {
            addCriterion("deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Byte value) {
            addCriterion("deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Byte value) {
            addCriterion("deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Byte value) {
            addCriterion("deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Byte value) {
            addCriterion("deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Byte> values) {
            addCriterion("deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Byte> values) {
            addCriterion("deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Byte value1, Byte value2) {
            addCriterion("deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Byte value1, Byte value2) {
            addCriterion("deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCarTypeIsNull() {
            addCriterion("car_type is null");
            return (Criteria) this;
        }

        public Criteria andCarTypeIsNotNull() {
            addCriterion("car_type is not null");
            return (Criteria) this;
        }

        public Criteria andCarTypeEqualTo(Byte value) {
            addCriterion("car_type =", value, "carType");
            return (Criteria) this;
        }

        public Criteria andCarTypeNotEqualTo(Byte value) {
            addCriterion("car_type <>", value, "carType");
            return (Criteria) this;
        }

        public Criteria andCarTypeGreaterThan(Byte value) {
            addCriterion("car_type >", value, "carType");
            return (Criteria) this;
        }

        public Criteria andCarTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("car_type >=", value, "carType");
            return (Criteria) this;
        }

        public Criteria andCarTypeLessThan(Byte value) {
            addCriterion("car_type <", value, "carType");
            return (Criteria) this;
        }

        public Criteria andCarTypeLessThanOrEqualTo(Byte value) {
            addCriterion("car_type <=", value, "carType");
            return (Criteria) this;
        }

        public Criteria andCarTypeIn(List<Byte> values) {
            addCriterion("car_type in", values, "carType");
            return (Criteria) this;
        }

        public Criteria andCarTypeNotIn(List<Byte> values) {
            addCriterion("car_type not in", values, "carType");
            return (Criteria) this;
        }

        public Criteria andCarTypeBetween(Byte value1, Byte value2) {
            addCriterion("car_type between", value1, value2, "carType");
            return (Criteria) this;
        }

        public Criteria andCarTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("car_type not between", value1, value2, "carType");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}